import http from "@/utils/request";
//请求首页数据
export const getHomeData = () => http.get("home/getData");
// 请求用户数据,获取列表数据
export const getUser = (params) => {
    return http.get("user/getUser", params);
}
//新增
export const addUser = (data) => {
    return http.post("/user/add", data);
}
//删除
export const delUser = ({ id }) => {
    return http.post("/user/del", { id }); // 将 id 包装成对象
};
//修改
export const editUser = (data) => {
    return http.post("/user/edit", data);
}